﻿using MagicOnion;
using MagicOnion.Server;
using MagicOnionWebApi.Shared;

namespace MagicOnionWebApi.Services
{
    public class MyFirstService : ServiceBase<IMyFirstService>, IMyFirstService
    {
        public async UnaryResult<int> SumAsync(int x, int y)
        {
            Console.WriteLine("服务端接受到请求");
            Console.WriteLine($"Received:{x}, {y}");
            await Task.Run(() => true);
            return x + y;

        }
    }
}
